package com.example.buttons;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class MainActivity4 extends AppCompatActivity {

    public static final String TAG = "MainActivity4";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main4);

        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();

        Intent rintent = new Intent();
        rintent.putExtra("name","yejing");
        setResult(999,rintent);

        Log.d(TAG, "onCreate: ");
    }


}